package auction.domain;

public class Auction {

	private int id;
	private String description;
	private String owner;
	private String end;
	private double highestBid;
	private String highestBidder;
	private boolean ended;


	public Auction(int id, String description, String owner, String end) {
		super();
		this.id = id;
		this.description = description;
		this.owner = owner;
		this.end = end;
		this.highestBid = 0.00;
		this.highestBidder = "none";
		this.ended = false;
	}

	@Override
	public String toString() {
		return id + ". '" + description
				+ "' " + owner + " " + end + " "
				+ highestBid + " " + highestBidder;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}
	
	public String getOwner() {
		return owner;
	}
	
	public void setOwner(String owner) {
		this.owner = owner;
	}
	public String getEnd() {
		return end;
	}

	public void setEnd(String end) {
		this.end = end;
	}

	public double getHighestBid() {
		return highestBid;
	}

	public void setHighestBid(double highestBid) {
		this.highestBid = highestBid;
	}
	
	public String getHighestBidder() {
		return highestBidder;
	}

	public void setHighestBidder(String highestBidder) {
		this.highestBidder = highestBidder;
	}

	public boolean isEnded() {
		return ended;
	}

	public void setEnded(boolean ended) {
		this.ended = ended;
	}
	
}
